#ifndef CUSTOM_LCD_DISPLAY_H_
#define CUSTOM_LCD_DISPLAY_H_

#include "application.h"
#include "display/lcd_display.h"
#include <esp_log.h>
#include <lvgl.h>

class CustomLcdDisplay : public SpiLcdDisplay {
    public:
        lv_obj_t *arc;              // 弧形控件
        lv_obj_t *time_label;       // 时间标签
    public:
    CustomLcdDisplay(esp_lcd_panel_io_handle_t io_handle, 
        esp_lcd_panel_handle_t panel_handle,
        int width,
        int height,
        int offset_x,
        int offset_y,
        bool mirror_x,
        bool mirror_y,
        bool swap_xy);
        void updateArc(int value);
        void updateTimeLabel(const char* text);
        void updateArcAndLabel(int value, const char* text);
};

#endif // CUSTOM_LCD_DISPLAY_H_